package com.cloudlead.common.lang.exception;

import com.cloudlead.common.lang.BizRuntimeException;
import com.cloudlead.common.lang.api.ResponseCode;

/**
 * 请求不接受异常
 *
 * @author Dean Lu
 */
public class RequestNotAcceptableException extends BizRuntimeException {

    /**
     *
     */
    private static final long serialVersionUID = -3625633233926549521L;

    public RequestNotAcceptableException() {
        this(null);
    }

    public RequestNotAcceptableException(String msg) {
        this(msg, null);
    }

    public RequestNotAcceptableException(String msg, Throwable t) {
        this(0, msg, t);
    }

    public RequestNotAcceptableException(int businessCode) {
        this(businessCode, null);
    }

    public RequestNotAcceptableException(int businessCode, String msg) {
        this(businessCode, msg, null);
    }

    public RequestNotAcceptableException(int businessCode, String msg, Throwable t) {
        super(msg, t, ResponseCode.RESOURCE_NOT_ACCEPTABLE, businessCode);
    }
}
